#ifndef _PLAYER_H_
#define _PLAYER_H_

#include "card.h"
#include <vector>

using namespace std;

class Player
{
	public:

        void set_name (string str);
        string get_name();
		void set_hitpoint (int value);
		int  get_hitpoint ();
		void set_manapoint (enum MagicColor type, int value);
		int  get_manapoint (enum MagicColor type);
		void set_inc_mana (enum MagicColor type, int value);
		int  get_inc_mana (enum MagicColor type);
		void increase_mana ();
		void change_hitpoint (int value);
        void change_manapoint (enum MagicColor type, int value);
		bool is_alive ();



		Player() :
			hitpoint(0),
			manapoint_red(0),
			manapoint_blue(0),
			manapoint_green(0),
			inc_mana_red(0),
			inc_mana_blue(0),
			inc_mana_green(0),
            mana_limit(0){}
        void print_player();

	private:
        //vector<Card *> handcard;
        string name;
		int hitpoint;
		int manapoint_red;
		int manapoint_blue;
		int manapoint_green;
		int inc_mana_red;
		int inc_mana_blue;
		int inc_mana_green;
        int mana_limit;
        //vector<Card *> *cardmap;    //the global cardlib
};


#endif /*_PLAYER_H_*/
